package com.bailiban.service.impl;

import com.bailiban.entity.CityCov;
import com.bailiban.repository.CityCovRepository;
import com.bailiban.service.CityCovService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhulang
 * @Classname CitycovServiceImpl
 * @Description TODO
 * @Date 2020/2/18 12:19
 */
@Service
public class CityCovServiceImpl implements CityCovService {
    @Autowired
    private CityCovRepository cityRepository;
    @Override
    public List<CityCov> findAllByProvinceId(Integer   provinceId) {
        List<CityCov> cityCovs = cityRepository.findAllByProvinceCov_ProvinceId(provinceId);
        return cityCovs;
    }
}
